package org.zcl.service;

import org.zcl.entity.SeckillProducts;
import org.zcl.model.stock.StockRequest;

/**
 * .
 *
 * @author zhuchenglin
 * @since 2024/6/18 16:21
 */
public interface StockService {

    Boolean stock(StockRequest request, String key, long expire, int num);

    int initStock(long commodityId);

    SeckillProducts init(Long productId, String key, long expire);

    long addStock(String key, int num);

    long addStock(String key, Long expire, int num);

    int getStock(String key);

}
